package metrics

import "github.com/prometheus/client_golang/prometheus"

type Metrics struct {
	ipCheckCounter *prometheus.CounterVec
}

func New() *Metrics {

	return &Metrics{
		ipCheckCounter: prometheus.NewCounterVec(prometheus.CounterOpts{}, []string{"ipCheck"}),
	}
}

// IP check请求递增
func (m *Metrics) IPCheckInc()  {
	m.ipCheckCounter.WithLabelValues("IPCheck").Inc()
}